<include file="public:header" />
<div class="allpagetop">导航设置<strong>/</strong>添加</div>
<div class="admin_main_nr_dbox">
 	    <div class="pagetit">
	        <div class="ptit">导航设置</div>
				<div class="topnav">
			         
					  <a href="{:RU('nav/lists')}" <if condition="ACTION_NAME eq 'lists'">class="select"</if>>列表</a>
					   <a href="{:RU('nav/add')}" <if condition="ACTION_NAME eq 'add'">class="select"</if>>添加</a>
				    <div class="clear"></div>
				</div>
	        <div class="clear"></div>
	    </div>
		
		
		
    <div class="toptit">添加导航</div>
  <form action="{:RU('nav/add')}" method="post"   name="FormData" id="FormData" >
	  <div class="admin_form_main">
	  
	    <div class="fl">导航名称:</div>
		<div class="fr"><input name="title" type="text"  class="input_text_default" maxlength="60" placeholder="请输入导航名称"/></div>
		<div class="fl">导航标记:</div>
		<div class="fr">
		<input name="pagealias" type="text"  class="input_text_default" maxlength="100" placeholder="请输入导航标记"/>
		</div>
		
		<div class="fl">导航类型:</div>
		<div class="fr">
				  <div class="imgradio">
				  	<input name="type" type="hidden" value="1" />
				    <div class="radio select" data="1">外部链接</div>
					<div class="radio" data="2">内部链接</div>
					<div class="clear"></div>
				  </div>
				  
		</div>
		
		<div class="moreform1">
		
				  <div class="fl">链接地址:</div>
				  <div class="fr">
					<input name="url" type="text"  class="input_text_default" maxlength="100" placeholder="如：http://www.sucaihuo.com/123/"/>
					</div>
	    </div>
		
		<div class="moreform2" style="display:none">
		
		
			<div class="fl">控制器:</div>
			<div class="fr">
			<input name="act" type="text"  class="input_text_default" maxlength="100" placeholder="控制器名称和方法名称用于自动生成系统内部链接"/>
			</div>
			
			<div class="fl">方法名称:</div>
			<div class="fr">
			<input name="fun" type="text"  class="input_text_default" maxlength="100" placeholder="控制器名称和方法名称用于自动生成系统内部链接"/>
			</div>
			
		</div>
		<div class="fl">新窗口打开:</div>
					  <div class="fr">
					  
					   <div class="imgchecked"><input name="target" type="hidden" value="0" /></div>
					  </div>
		<div class="fl">是否显示:</div>
					  <div class="fr">
					  
					   <div class="imgchecked select"><input name="display" type="hidden" value="1" /></div>
					  </div>
		<div class="fl">导航排序:</div>
			<div class="fr">
									<input name="sort" type="text"  class="input_text_default" id="sort" maxlength="8" onkeyup="if(event.keyCode !=37 && event.keyCode != 39) value=value.replace(/\D/g,'');"onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"   placeholder="数字越大越靠前，默认是0"/>
	    </div>
		 <div class="fl"></div>
		<div class="fr">
		<input name="" type="submit" class="admin_submit big"    value="保存"/>
		<input name=""  type="button" class="admin_submit big"    value="返回" onclick="history.go(-1)"/>
		</div>
		
		
		
		<div class="clear"></div>
		
	  </div>
  
  
 
  
  
   
  </form>
</div>
<include file="public:footer" />
<script type="text/javascript">
		$(document).ready(function(){
			$('.imgradio .radio').click(function()
			{
				if($(this).attr('data')=='1')
				{
				$(".moreform2").hide();
				$(".moreform1").show();
				}
				else
				{
				$(".moreform2").show();
				$(".moreform1").hide();
				}
			});
		});
</script>
</body>
</html>